<?php
    session_start();
    if(isset($_SESSION['user'])||(isset($_SESSION['admin']))){
        require_once("viewmenu.php");
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo.css" />
        <link rel="stylesheet" type="text/css" href="css/corpo.css"/>        
        <script type="text/javascript" src="js/jquery-2.1.1.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type='text/javascript' src='js/senha.alterar.js'></script>
        <title>Alterar Senha</title>
    </head>
    <body>
	<div id='centro'>
            <p>Alterar Senha</p>
            <fieldset>
                <div class="mensagem-erro"></div>                
                <form name="alterarsenha" id="alterarsenha" action="../control/ControleSenhaAlterar.php" method="post">
                    <table>
                        <tr>
                            <td class="td1">Nova Senha:</td>
                            <td class="td2"><input type='password' name='novasenha' id="novasenha" class="input-text" autofocus required/></td>
                        </tr>
                        <tr>
                            <td class="td1">Repita a Senha:</td>
                            <td class="td2"><input type='password' name='controlesenha' id="controlesenha" class="input-text" required/></td>
                        </tr>
                        <tr>
                            <td colspan="2"><input type='submit' name='controle' value='Cadastrar'/></td>
                        </tr>
                    </table>
                </form>
            </fieldset>
	</div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>